import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm'
import { AppComponent } from './app-component.entity'

// 组件输入配置
@Entity()
export class AppComponentInput {
  @PrimaryGeneratedColumn()
  id: number

  @Column()
  name: string

  @Column()
  value: string

  @ManyToOne(type => AppComponent, component => component.inputs)
  component: AppComponent
}
